# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxscrnsaver
pkgver=1.2.3
pkgrel=0
pkgdesc="X.Org screen saver extension"
url="https://cgit.freedesktop.org/xorg/lib/libXScrnSaver/"
arch="all"
license="MIT"
makedepends="$depends_dev libxext-dev libx11-dev util-macros xorgproto"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/lib/libXScrnSaver-$pkgver.tar.bz2"

builddir="$srcdir"/libXScrnSaver-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="7ea628324a11b25ee82c7b11c6bf98f37de219354de51c1e29467b5de422669ba1ab121f3b9dc674093c8f3960e93c5d5428122f5539092f79bc8451c768354a  libXScrnSaver-1.2.3.tar.bz2"
